import { configureStore } from "@reduxjs/toolkit"
import rootReducer from "./reducers"
import * as api from "../api" //引入api文件
// console.log(api)
let rootStore = configureStore({
    reducer: rootReducer,
    middleware: getDefaultMiddleware => getDefaultMiddleware({
        thunk: {
            extraArgument: api
        }
    })
})

export default rootStore